//
//  RequestData.h
//  WorkNest
//
//  Created by qbm360 on 15/7/6.
//  Copyright (c) 2015年 nest. All rights reserved.
//

    /**
     当前页面功能: 请求数据的方法
     **/

#import <Foundation/Foundation.h>
#import "UserModel.h"
#import "ProductModel.h"
#import "PriceQueryModel.h"
#import "CategoryModel.h"
#import "UserInfoModel.h"
#import "QueryQuoteModel.h"
#import "AddressModel.h"
#import "ProductDetailModel.h"
#import "BulkorderModel.h"
#import "ShoppingCartModel.h"
#import "StatusRecordModel.h"
#import "DeliveryRecordModel.h"
#import "MyMessageModel.h"
#import "PayModel.h"

@interface RequestData : NSObject

// 登录
+ (void)loginParameters:(NSDictionary *)params withBlock:(void (^)(UserModel *userData, NSString *token, NSError *error))block;

// 退出登录
+ (void)loginoutParameters:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 注册
+ (void)registParameters:(NSDictionary *)params withBlock:(void (^)(UserModel *, NSString *, NSError *))block;

// 获取验证码
+ (void)getCodeNumber:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 更改密码
+ (void)changePassword:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 修改用户信息
+ (void)updateUserInfo:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 查询用户信息
+ (void)getUserDetail:(NSDictionary *)params withBlock:(void (^)(UserInfoModel *, NSString *, NSError *))block;

// 首页
+ (void)requestProductParameters:(NSDictionary *)params withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 查询产品详情
+ (void)getProductDetail:(NSDictionary *)params withBlock:(void (^)(ProductDetailModel *, NSString *, NSError *))block;

// 文件上传
+ (void)fileUploadParameters:(NSDictionary *)params imageData:(UIImage *)imageData withBlock:(void (^)(NSString *, NSString *, NSError*))block;

// 询价 
+ (void)priceQueryParameters:(NSDictionary *)params withBlock:(void (^)(NSString *, NSString *, NSError*))block;

// 开发
+ (void)developParameters:(NSDictionary *)params withBlock:(void (^)(NSString *, NSString *, NSError*))block;

// 大货下单
+ (void)bulkorderParameters:(NSDictionary *)params withBlock:(void (^)(NSString *,NSString *, NSString *, NSError*))block;

// 开发单列表
+ (void)developListParameters:(NSDictionary *)params withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 询价单列表
+ (void)priceQueryListParameters:(NSDictionary *)params withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 大货单列表
+ (void)bulkorderListParameters:(NSDictionary *)params withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 待支付列表
+ (void)queryToPayListParameters:(NSDictionary *)params withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 开发单询价单详情
+ (void)developDetailParameters:(NSDictionary *)params url:(NSString *)urlString withBlock:(void (^)(PriceQueryModel *, QueryQuoteModel *, NSString *, NSError*))block;

// 开发确定样衣
+ (void)needConfirmParameters:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError*))block;

// 询价转开发
+ (void)inquireDevelopParameters:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError*))block;

// 报价单详情
+ (void)queryQuoteDetailParameters:(NSDictionary *)params withBlock:(void (^)(QueryQuoteModel *, NSString *, NSError*))block;

// 大货单详情
+ (void)bulkorderDetailParameters:(NSDictionary *)params withBlock:(void (^)(BulkorderModel *, NSString *, NSError*))block;

// 平台品类
+ (void)CategoryParameters:(NSDictionary *)params url:(NSString *)urlString withBlock:(void (^)(NSArray *, NSString *, NSError*))block;

// 收货地址更新
+ (void)updateAddress:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 查询收货地址列表
+ (void)queryAddressList:(NSDictionary *)params withBlock:(void (^)(NSArray *,NSString *, NSError *))block;

// 支付信息提交
+ (void)pay:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 我的账户界⾯（查询支付记录）
+ (void)selectPayRecords:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 产品收藏
+ (void)productCollect:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 添加购物车
+ (void)addShoppingCart:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 查询购物车列表
+ (void)queryShoppingCartList:(NSDictionary *)params withBlock:(void (^)(NSArray *,NSString *, NSError *))block;

// 购物车详情
+ (void)queryShoppingCartParameters:(NSDictionary *)params withBlock:(void (^)(BulkorderModel *, NSString *, NSError*))block;

// 查询状态记录
+ (void)queryOrderStatusRecords:(NSDictionary *)params withBlock:(void (^)(NSArray *,NSString *, NSError *))block;

// 查询交付记录
+ (void)queryDeliveryRecords:(NSDictionary *)params withBlock:(void (^)(NSArray *,NSString *, NSError *))block;

// 申请推款
+ (void)productApply:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 获取推广内容
+ (void)getSendMessage:(NSDictionary *)params withBlock:(void (^)(NSString *, NSError *))block;

// 我的消息
+ (void)myMessage:(NSDictionary *)params withBlock:(void (^)(NSArray *,NSString *, NSError *))block;
    
@end
